
package CCT220_Aula11_Exercicio01_13106;

/**
 * ******************************
 * Project: CCT220
 * Package: CCT220_Aula11_Exercicio01_13106
 * Class: TransporteAereo
 * Last Change: 22/09/2011 14:46:52
 * Description:
 * ******************************
 * 
 * @author marcel
 * @author 13106
 * 
 */
public abstract class TransporteAereo extends Transporte {
	private int altitudeAtual;


	/**
	 * ******************************
	 * Constructor for
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: TransporteAereo
	 * LastChange: 22/09/2011 14:46:53
	 * ******************************
	 * 
	 * @param nome
	 * @param numPassageiros
	 * @param velocidadeAtual
	 * @param altitudeAtual
	 */
	public TransporteAereo(String nome, int numPassageiros,
	        int velocidadeAtual, int altitudeAtual) {

		super(nome, numPassageiros, velocidadeAtual);
		this.altitudeAtual = altitudeAtual;
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: TransporteAereo
	 * Method: subir
	 * Last Change: 22/09/2011 14:46:55
	 * Description: Sum the value of metros to the value of altitudeAtual
	 * ******************************
	 * 
	 * @param metros
	 */
	public void subir(int metros) {

		altitudeAtual += metros;
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: TransporteAereo
	 * Method: descer
	 * Last Change: 22/09/2011 14:46:58
	 * Description: Subtract the value of metros to the value of altitudeAtual
	 * ******************************
	 * 
	 * @param metros
	 */
	public void descer(int metros) {

		altitudeAtual -= metros;
	}


	/**
	 * ******************************
	 * Geter for altitudeAtual in
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: TransporteAereo
	 * Field: altitudeAtual
	 * Last Change: 22/09/2011 14:47:24
	 * Extra Description:
	 * ******************************
	 * 
	 * @return the altitudeAtual
	 */

	public int getAltitudeAtual() {

		return altitudeAtual;
	}

}
